<?php
/**
* Template designed by 12leaves.com
* 12leaves.com - Free ecommerce templates and design services

 * Module Template
 *
 * Template used to render attribute display/input fields
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_modules_attributes.php 3208 2006-03-19 16:48:57Z birdbrain $
 */
    //产品的其它属性
?>

<?php
    for($i=0;$i<sizeof($options_name);$i++) {
?>
<?php
  if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
?>
<h3 class="attributesComments"><?php echo $options_comment[$i]; ?></h3>
<?php
  }
  
?>
<tr>
<td><?php echo $options_name[$i] ; ?></td>
<td>
<?php echo "\n" . $options_menu[$i]; ?>
</td>
</tr>

<?php
    }
?>

<script type="text/javascript">
function onselectthis(fid,id){
	//$("id["+id+"]").;
	var obj=document.getElementsByName('id['+fid+']'); 
	for(var i=0; i<obj.length; i++){
		var name = "#atext_"+fid+"-"+obj[i].value;
		if(obj[i].value==id){
			obj[i].checked = true;
			$(name).attr("class","size_box selected");
		}else{
	    	obj[i].checked = false;
	    	$(name).attr("class","size_box");
		}
	}
	
	
}

</script>
